﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.EvaluateNurseCare;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.EvaluateNurseCare;

namespace VOL.SmartMecial.Services.EvaluateNurseCare
{
    public class AddPatientReCordService : IAddPatientReCordService
    {
        private readonly IBaseRepository<PatientReCordModel> _patientReCordRep;

        public AddPatientReCordService(IBaseRepository<PatientReCordModel> patientReCordRep)
        {
            this._patientReCordRep = patientReCordRep;
        }

        /// <summary>
        /// 添加护理记录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public async Task<int> AddPatientReCord(PatientReCordModel model)
        {
            var result = await _patientReCordRep.AddAsync(model);
                
            return result;
        }
    }
}
